package edu.uwm.cs552;

public interface ConstructionCost {

	/**
	 * Compute the cost of building track between hexagons with
	 * the given terrain and given barrier.
	 * @param t1 terrain on one end of track
	 * @param b barrier (if any) between the hexagons, may be null
	 * @param t2 terrain on other end of track.
	 * @return cost associated with building track, or {@link Double#POSITIVE_INFINITY}
	 * if track cannot be built.
	 */
	public double cost(Terrain t1, Barrier b, Terrain t2);
}
